﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VOL.Entity.DTO
{
    public class WareHouseOutOrder
    {

        /// <summary>
        ///出库单号
        /// </summary>
        [Display(Name = "出库单号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string WarehouseoutId { get; set; }

        /// <summary>
        ///出库单类型
        /// </summary>
        [Display(Name = "出库单类型")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string WarehouseoutType { get; set; }

        /// <summary>
        ///关联订单号
        /// </summary>
        [Display(Name = "关联订单号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string OrderId { get; set; }

        /// <summary>
        ///供应商编号
        /// </summary>
        [Display(Name = "供应商编号")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string SupplierNumber { get; set; }

        /// <summary>
        ///供应商名称
        /// </summary>
        [Display(Name = "供应商名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string SupplierName { get; set; }

        /// <summary>
        ///供应商联系人
        /// </summary>
        [Display(Name = "供应商联系人")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string SupplierPeople { get; set; }

        /// <summary>
        ///供应商联系方式
        /// </summary>
        [Display(Name = "供应商联系方式")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string SupplierPhone { get; set; }

        /// <summary>
        ///制单人
        /// </summary>
        [Display(Name = "制单人")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string MakeupPeople { get; set; }

        /// <summary>
        ///制单时间
        /// </summary>
        [Display(Name = "制单时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? MakeupTime { get; set; }

        /// <summary>
        ///备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string Remark { get; set; }

        /// <summary>
        ///审核原因
        /// </summary>
        [Display(Name = "审核原因")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string Auditreason { get; set; }

        /// <summary>
        ///产品ID
        /// </summary>
        [Display(Name = "产品ID")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string ProductId { get; set; }

        /// <summary>
        ///产品名称
        /// </summary>
        [Display(Name = "产品名称")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string ProductName { get; set; }

        /// <summary>
        ///产品编码
        /// </summary>
        [Display(Name = "产品编码")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string ProductCode { get; set; }

        /// <summary>
        ///规格
        /// </summary>
        [Display(Name = "规格")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string ProductSKU { get; set; }

        /// <summary>
        ///批次
        /// </summary>
        [Display(Name = "批次")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string Batch { get; set; }

        /// <summary>
        ///单价
        /// </summary>
        [Display(Name = "单价")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Price { get; set; }

        /// <summary>
        ///出库数
        /// </summary>
        [Display(Name = "出库数")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? WarehouseinNumber { get; set; }

        /// <summary>
        ///总价
        /// </summary>
        [Display(Name = "总价")]
        [DisplayFormat(DataFormatString = "10,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? SumPrice { get; set; }

        /// <summary>
        ///库位
        /// </summary>
        [Display(Name = "库位")]
        [MaxLength(255)]
        [Column(TypeName = "nvarchar(255)")]
        [Editable(true)]
        public string WarehouseLocationId { get; set; }

        /// <summary>
        ///是否删除
        /// </summary>
        [Display(Name = "是否删除")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? IsDel { get; set; }



    }
}
